package com.gengdan.util;

/**
 * @author Sun Mingshan
 * @Description TODO
 * @date 2020/5/12 23:11
 */
public class StrUtil {
    /***
    * @Description 去除首尾字符
    * [{collecId=4, countryCode=20400006, userIdOperator=5, holeLocCode=Y1-B-1-A1-02}]
    * @param str
    * @Return java.lang.String
    * @Author Sun Mingshan
    * @Date 2020/5/12 23:13
    **/
    public static String trimForeEnd(String str){
//        String trimFore = str.substring(0,str.length()-1);
//        String trimEnd = trimFore.substring(1);
        String result = str.replaceAll("=",":");
        return result;
    }
}
